import requests

## ingress 创建
data1={
  "group": "qding",
  "env": "dev",
  "appname": "qds-partner-remote",
  "domain": ["devboss.qdingnet.com"],
  "request_path": "/qds-partner-remote",
  "app_path": "/qds-partner-remote",
  "app_port": 8124
}

a = requests.post("http://10.37.253.241:8000/k8s/ingress/deploy/", data1)
print(a)


## ingress 删除
data2={
  "group": "qding",
  "env": "dev",
  "appname": "qds-partner-remote",
}

a = requests.post("http://10.37.253.241:8000/k8s/ingress/delete/", data2)
print(a)